package LEKIEUANH.OOP.LEVEL2.ex01;

public class RectangleEntity {
private double width;
private double height;
private String color;

public RectangleEntity(){
	width = 1.0;
	height = 1.0;
	color = "white";
}
public RectangleEntity(double width, double height){
	this.width = width;
	this.height = height;
}
public double getWidth() {
	return width;
}
public void setWidth(double width) {
	this.width = width;
}
public double getHeight() {
	return height;
}
public void setHeight(double height) {
	this.height = height;
}
public String getColor() {
	return color;
}
public void setColor(String color) {
	this.color = color;
}
public double Area(RectangleEntity objRectangle){
	return objRectangle.getWidth() * objRectangle.getHeight();
}
public double Peri(RectangleEntity objRectangle){
	return (objRectangle.getWidth()+objRectangle.getHeight())*2;
}
}
